Module:Blank

--[[

Scribunto Testing Area
This Lua module is used, for if not supports the template blank, can we invoke this module.

Please, do not edit this module. Can affect the userboxes and the template:blank.

If you like test this module, go to Module:Blank/testcases.

You can use Special:PrefixIndex/Module:Blank to list modules in this area.

Sample module
]]

local p = {}

function p.switch(frame) -- Sample data -- To be placed in Module:Name/data, then called via mw.loadData local data = { foo = { bar = '', bar1 = '' },       bar = { baz = '', baz1 = '' }   }    local text = frame.args[1] local textkey = frame.args[2] if data[text] ~= nil and data[text][textkey] ~= nil then text = data[text][textkey] else text = nil -- Modify invalid key output here end return text end

return p

--return p (end)